package com.demo.seckill;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author libo
 * @ClassName Application
 * @Description:  启动类
 * @date 2018/11/15 17:06
 *  API接口测试：http://localhost:8080/seckill/swagger-ui.html
 */
@SpringBootApplication
public class Application {
    private final static Logger logger = LoggerFactory.getLogger(Application.class);
    /**
     * 1. 数据库乐观锁；2. 基于Redis的分布式锁；3. 基于ZooKeeper的分布式锁
     * 4. redis 订阅监听；5.kafka消息队列
     * 启动前 请配置application.properties中相关redis、zk以及kafka相关地址
     */
    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
        logger.info("项目启动");
    }

}
